Estimation is done in Stata v11.
All tables in the paper are generated by executing master_oftm.do, which calls the respective do files. 
The exception is Table 6 which requires access to the NRVA data.
All data and do files should be in the same directory and there should be a sub directory called tables_figs.

The data are found in ops_quantities.dta. 

Variables are as follows:
Background	
dist_32_id	District code
year	Year
province	Province name
district	District name
dc_id		District code
pv_id		Province code
region_name	Region name
prov_32_id	Province code
prov_32_name	Province name
dist_32_name	District name
region		Region name
satellite	Observation by satellite
disttokabul	Distance to Kabul
	
Opium production	
q		Opium production
price		Price of raw opium
yield		Opium yield
eradication	Area eradicated
	
Conflict	
cas_dc		Number of casualties from hostile encounters in district
cas_dc_pos	Casualties from hostile encounters in district
cas_pv		Number of casualties from hostile encounters in province
cas_nh_pv	Casualties from hostile encounters in province
cas_nh_dc	Number of casualties from non-hostile encounters in district
cas_nh_dc_pos	Casualties from non-hostile encounters in district
cas_pv_pos	Number of casualties from non-hostile encounters in province
cas_nh_pv_pos	Casualties from non-hostile encounters in province
Above variables with numeric suffix denotes monthly observations
	
Precipitation	
rainMM		Precipitation in month MM

The files map_data.dta and map_coor.dta are geographical files generated by shp2dta using
admin3_poly_32 (available from http://www.aims.org.af).